package org.compression.controller;

import org.compression.services.BaseService;
import org.compression.services.imp.UserManagmentServiceImp;
import org.model.business.UserManagment;
import org.model.comm.Page;
import org.model.comm.UpdateModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping(value = "/userManagment")
public class UserManagmentController extends BaseController<UserManagmentServiceImp,UserManagment>{
	
	@Autowired
	UserManagmentServiceImp mUserManagmentServiceImp;
	
	@RequestMapping(value ="/updatePassWord", method = RequestMethod.POST)
	public  Object updatePassWord(@RequestBody  UpdateModel<UserManagment> mAddModel) {
		mUserManagmentServiceImp.updatePassWord(mAddModel);
		return mAddModel;
	}
	
}
